<html>
<head>
    <title>Vue测试输入</title>
	

</head>
<body>
	<div id="app">
		<div><input type="text" name="name" onchange="changeName(this)" >
		</div>
		<div id='showName'>
		</div>
	</div>
	
    <script>
function changeName(name){
	var val = name.value
	document.getElementById('showName').innerHTML='刚才输入的是：'+val
}
    </script>
</body>
</html>